#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
WebSocket事件处理模块
导出所有事件注册函数
"""

from .connection_events import register_connection_events
from .asr_events import register_asr_events
from .tts_events import register_tts_events, auto_speak_result

__all__ = [
    'register_connection_events',
    'register_asr_events',
    'register_tts_events',
    'auto_speak_result'
]


def register_all_events(socketio):
    """
    注册所有SocketIO事件处理器
    
    Args:
        socketio: SocketIO实例
    """
    register_connection_events(socketio)
    register_asr_events(socketio)
    register_tts_events(socketio)
    print("✅ 所有WebSocket事件已注册")
